// api/routes/simple_routes.go
package routes

import (
	"mygin/api/handlers"

	"github.com/gin-gonic/gin"
)

func RegisterSimpleRoutes(r *gin.RouterGroup) {
	// 直接创建handler，不需要db或service
	simpleHandler := handlers.NewSimpleHandler()

	//simpleRoutes := r.Group("/simple", middleware.DecryptMiddleware())
	simpleRoutes := r.Group("/simple")
	{
		simpleRoutes.GET("/ping1", simpleHandler.Ping1)
		simpleRoutes.GET("/ping", simpleHandler.Ping)
		simpleRoutes.GET("/info/:id", simpleHandler.GetInfo)
		// 其他简单路由...
	}
}
